package com.example.ljw.frescowallpaper.view;

import android.graphics.Bitmap;
import android.os.Environment;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Toast;

import com.example.ljw.frescowallpaper.R;
import com.example.ljw.frescowallpaper.helper.SDCardHelper;

import java.io.File;

public class SelectIconActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_select_icon);

        initData();
    }

    private void initData() {
        String filepath = SDCardHelper.getSDCardPublicDir(Environment.DIRECTORY_DOWNLOADS);
        int length = SDCardHelper.loadFileFromSDCard(filepath).length;
        Toast.makeText(this, length, Toast.LENGTH_SHORT).show();
    }
}
